

package com.xgit.iov.common.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色数据权限表
 * </p>
 *
 * @author william
 * @since 2020/5/28
 */
@Data
@TableName(value = "sys_role_datarule")
@EqualsAndHashCode(callSuper = true)
public class SysRoleDataRule extends Model<SysRoleDataRule> {

	private static final long serialVersionUID = 1L;

	/**
	 * 角色ID
	 */
	@ApiModelProperty(value = "角色id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long roleId;
	/**
	 * 数据权限ID
	 */
	@ApiModelProperty(value = "数据权限id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long dataRuleId;
}
